home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Palettes / PSAction / PSAction.h < prev    next >
Text File  |  1995-06-12  |  1KB  |  87 lines

  1. /* PSAction Object -- copyright 1993, 1994 by C.D.Lane */
  2.  
  3. #import <appkit/appkit.h>
  4.  
  5. @interface PSAction : Object
  6. {
  7.     id script;
  8.     id target;
  9.     id errors;
  10.     id view;
  11.  
  12.     char *contents;
  13.     Window *cache;
  14.     NXRect bounds;
  15.     struct _flags {
  16.         unsigned int
  17. #ifdef __BIG_ENDIAN__
  18.         disabled:1,
  19.         dontClearCache:1,
  20.         dontReportError:1,
  21.         :29;
  22. #else
  23.         :29,
  24.         dontReportError:1,
  25.         dontClearCache:1,
  26.         disabled:1;
  27. #endif
  28.         } flags;
  29. }
  30.  
  31. - init;
  32. - free;
  33.  
  34. - (BOOL) isEnabled;
  35. - setEnabled:(BOOL) flag;
  36.  
  37. - (BOOL) isCacheCleared;
  38. - setCacheCleared:(BOOL) flag;
  39.  
  40. - (BOOL) isErrorReported;
  41. - setErrorReported:(BOOL) flag;
  42.  
  43. - script;
  44. - setScript:anObject;
  45.  
  46. - target;
  47. - setTarget:anObject;
  48.  
  49. - errors;
  50. - setErrors:anObject;
  51.  
  52. - view;
  53. - setView:anObject;
  54.  
  55. - (int) intValue;
  56. - takeIntValueFrom:sender;
  57. - setIntValue:(int) anInt;
  58. - integertype;
  59. - booleantype;
  60.  
  61. - (const char *) stringValue;
  62. - takeStringValueFrom:sender;
  63. - setStringValue:(const char *) aString;
  64. - stringtype;
  65. - nametype;
  66.  
  67. - (float) floatValue;
  68. - takeFloatValueFrom:sender;
  69. - setFloatValue:(float) aFloat;
  70. - realtype;
  71.  
  72. - (double) doubleValue;
  73. - takeDoubleValueFrom:sender;
  74. - setDoubleValue:(double) aDouble;
  75.  
  76. - read:(NXTypedStream *) stream;
  77. - write:(NXTypedStream *) stream;
  78.  
  79. - (NXImage *) getIBImage;
  80. - (const char *) getInspectorClassName;
  81.  
  82. - printf:(const char *) format, ...;
  83. - scriptError:(NXHandler *) error;
  84. - executeScript;
  85.  
  86. @end
  87.